<!DOCTYPE html>
<html>
 <head>
  
  <title>商品列表</title>
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <style>
  .table{
   width:90%;
   

  }
  </style>
 </head>
  <body>
  <table class="table table-striped">
  <caption>商品信息信息列表</caption>
  <thead>
    <tr>
      <th>商品编号</th>
      <th>商品名称</th>
      <th>商品类型</th>
      <th>商品价格</th>
      <th>生产地</th>
      <th>商品简介</th>
     
    </tr>
  </thead>
  <tbody>
    <tr>
     
    @foreach($product as $products)

<tr>
<td>{{$products->prductid}}</td>
<td>{{$products->productname}}</td>
<td>{{$products->typename}}</td>
<td>{{$products->price}}</td>
<td>{{$products->comp}}</td>
<td>{{$products->intro}}</td>


<form action="/addcar/{{$products->prductid}}" method="post">

<td><button type="submit" class="btn btn-dark">购买</button></td>
</form>



@endForeach
 </tr>
  
 
</tbody>
</table>
{{$product->links()}}

  </body>
</html>